package com.bootdo.system.dao;

import com.bootdo.system.domain.QuestionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
@Mapper
public interface QuestionDao {

	QuestionDO get(Long id);
	
	List<QuestionDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(QuestionDO question);
	
	int update(QuestionDO question);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    List<QuestionDO> getUserQuestionList(@Param("userid") Long userid);

	List<QuestionDO> getHuifuQuestionList(@Param("userid")Long userId);
}
